﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Hotel.Model
{
    [Table("MemberInfo")]
    public class MemberModel
    {
        [Key]
        public int Id { get; set; }

        /// <summary>
        /// 会员名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 会员手机号
        /// </summary>
        public string Phone {  get; set; }
        /// <summary>
        /// 会员身份证
        /// </summary>
        public string Card {  get; set; }
        /// <summary>
        /// 会员生日
        /// </summary>
        public DateTime Birthday { get; set; }
        /// <summary>
        /// 会员性别
        /// </summary>
        public int Sex { get; set; }
        /// <summary>
        /// 会员帐号是否可用  状态
        /// </summary>
        public int State { get; set; } = 1;
        /// <summary>
        /// 会员密码
        /// </summary>
        public string Pwd { get; set; }
        /// <summary>
        /// 余额
        /// </summary>
        public decimal Money { get; set; }
        /// <summary>
        /// 积分
        /// </summary>
        public int Points { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime Creatdate { get; set; } = DateTime.Now;
        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime Update { get; set;} = DateTime.Now;
        /// <summary>
        /// 逻辑删除
        /// </summary>
        public bool IsDeleted { get; set; } = false;
        /// <summary>
        /// 会员等级Id
        /// </summary>
        public int LId { get; set; }

    }
}
